import Vue from 'vue'
import yang from "./preson/yang"
import xiaobo from './preson/xiao_bo'

import li_xiao from './preson/li_xiao'
import VueRouter from 'vue-router'
import zhaoyundi from './zhaoyundi.js'
import zhfuqaing from './zhufuqaing'
import hu from "./person/hu_jun"
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/layout'
  },
  // 登录主页面
  {
    path: '/login',
    component: () => import('../views/login/index.vue'),
  },
  //创建账户
  {
    path: '/login1',
    component: () => import('../views/login/login1.vue'),
  },
  //忘记密码
  {
    path: '/login2',
    component: () => import('../views/login/login2.vue'),
  },
  // 用户协议
  {
    path: '/yongHuXieYi',
    component: () => import('../views/login/yongHuXieYi.vue'),
  },
  // 主页
  {
    path: '/layout',
    component: () => import('../views/layout.vue')
  },
  // 搜索页面
  {
    path: '/souSuo',
    component: () => import('../views/souSuo/souSuo.vue')
  },
  // 搜索列表
  {
    path: '/suoSuoLieBiao',
    component: () => import('../views/souSuo/suoSuoLieBiao.vue')
  },
  // 搜索空状态
  {
    path: '/souSuoKong',
    component: () => import('../views/souSuo/souSuoKong.vue')
  },
  
  
  
  ...zhfuqaing,
  ...zhaoyundi,
  ...hu,
  
  
  ...yang,
  ...xiaobo,
  ...li_xiao
  
]

const router = new VueRouter({
   mode: 'history',
   base: process.env.BASE_URL,
   routes
})

export default router
